<?php

namespace App\Http\Controllers\Api\V1\Resources;

use Illuminate\Http\Resources\Json\JsonResource;
use Carbon\Carbon;

class PriceResource extends JsonResource
{
    public function toArray($request)
    {
        $resource = $this->resource;
    
        return [
            'id'                => (int)$resource->id,
            'name'                => $resource->name,
            'min'             => $resource->min,
            'max'             => $resource->max,
            'order'              => $resource->order,
            'created_at'          =>(string)$resource->created_at,
            
        ];
    }
}
